package cn.com.yusys.yusp.custManager.repository.mapper;

import cn.com.yusys.yusp.custManager.domain.WcrmMarketCustGroupRel;
import com.esms.MessageData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author: zoie
 * @Description: 短信发送
 * @Date: 2021/6/25 2:26 下午
 * @Version: 1.0
 */
@Mapper
public interface MessageSendMapper {

    /**
     * 查询短信发送模板
     * @param modelType
     * @return
     */
    Map<String,Object>  selectMessageTemInfo(String modelType);

//    List<Map<String,Object>> selectCusInfo(@Param("custGroupNo")String custGroupNo, @Param("secondGridId")String secondGridId);
    List<Map<String,Object>> selectCusInfoByGroup(String custGroupNo);

    List<Map<String,Object>> selectCusInfoByTask(@Param("custGroupNo")String custGroupNo, @Param("custMgrId")String custMgrId);


    /**
     * 批量保存发送短信日志
     * @param map
     * @return
     */
    int insertSendLog(Map<String,Object> map);

    /**
     * 获取当前机构下零售副行长和业务副行长
     * @param orgId
     * @return
     */
    List<Map<String, Object>> getApprove(@Param("orgId")String orgId,@Param("roleIdList")String[] roleIdList);

    /**
     * 短信发送审批
     * @param map
     * @return
     */
    int insertApprove(Map<String,Object> map);

    int updateApprove(Map<String,Object> map);

    int getCount(String custGroupNo);
}
